package com.tiankong.ware.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import net.youdi.common.em.SuperEnum;

/**
 * @author: scl
 * @date: 2021-08-10 18:19
 * @description
 */
public interface Status {

    @Getter
    @AllArgsConstructor
    @JsonFormat(shape = JsonFormat.Shape.OBJECT)
    enum  Purchase  implements SuperEnum {
        CREATED("0","新建"),
        ASSIGNED("1","已分配"),
        RECEIVE("2","已领取"),
        FINISH("3","已完成"),
        HASERROR("4","有异常");
        @EnumValue
        @JsonValue
        private String code;
        private String msg;
    }
}
